package com.skyline.user.model;

import java.util.Date;

import com.skyline.common.util.CommonUtils;
import com.skyline.user.type.EmailTokenType;

public class EmailToken {
	private long id;
	private long userId;
	private String email;
	private String token;
	private Date checkTime;
	private boolean checked;
	private EmailTokenType type;
	
	

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getCheckTime() {
		return CommonUtils.cloneDate(checkTime);
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = CommonUtils.cloneDate(checkTime);
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public EmailTokenType getType() {
		return type;
	}

	public void setType(EmailTokenType type) {
		this.type = type;
	}

}
